package dao.impl;

import dao.TvDao;
import model.Tv;
import utils.DaoUtil;
import utils.GenicaDaoImpl;

/**
 * @Description:
 * @Author one world
 * @Date 2020/9/23 0023 11:08
 */
public class TvDaoImpl extends GenicaDaoImpl<Tv,Integer> implements TvDao {

    @Override
    public boolean delByGoodsId(Integer id) {
        Boolean flag = false;
        Object[] params = new Object[]{id};
        String sql = "DELETE FROM tv_parameter WHERE goods_id =?";
        flag = DaoUtil.update(sql,params);
        return flag;
    }
}
